package com.thumb.service.impl;

import com.thumb.bean.Thumb;
import com.thumb.dao.Impl.ThumbDaoImpl;
import com.thumb.dao.ThumbDao;
import com.thumb.service.ThumbService;

import java.util.List;

/**
 * @Author: Spider Man
 * @Description:
 * @Date Created in 2020-09-08 14:07
 * @Modified By:
 */
public class ThumbServiceImpl implements ThumbService {

    ThumbDaoImpl thumbDao = new ThumbDaoImpl();

    @Override
    public void updateNumber(int oldNum, int newNum) {
        thumbDao.updateNumber(oldNum, newNum);
    }

    @Override
    public List<Thumb> findNumber() {
        return thumbDao.findNumber();
    }
}
